﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aij1.BLL;

namespace Aij1.Cms
{
    /// <summary>
    /// 关键词管理
    /// </summary>
    public partial class KeywordMan : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Page_Init(Object sender, EventArgs e)
        {
            XpoDataSource1.Session = XpoSession;
        }

        protected void GV_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e)
        {
            string[] ops = e.Parameters.Split(':');
            if (ops.Length >= 2)
            {
                string op = ops[0];
                string ids = ops[1];
                switch (op)
                {
                    case "del":
                        KeywordData.Delete(XpoSession, ids);
                        break;
                    default:
                        break;
                }
            }
            GV.DataBind();
        }
    }
}